package com.burstly.lib.network.beans;

import com.burstly.lib.constants.Constants;
import com.burstly.lib.util.LoggerExt;
import java.text.MessageFormat;

public class UserAgentInfo
  implements Cloneable
{
  protected static final LoggerExt LOG = LoggerExt.getInstance();
  protected static final String TAG = UserAgentInfo.class.getSimpleName();
  private String Build = Constants.SDK_VERSION;
  private String BuildID = Constants.BUILD_ID;
  private String Carrier;
  private String Density;
  private String Device;
  private String DeviceFamily;
  private String MCC;
  private String MNC;
  private final String Platform = "Android";
  private String PlatformVersion;
  private String ScreenResolution;
  private String androidDensityID;
  private final ApiVersions apiVersions = new ApiVersions(null);
  private String appVersion = "";
  private int appVersionInt;
  private String v = "1";
  private String webUserAgent;

  public UserAgentInfo clone()
    throws CloneNotSupportedException
  {
    try
    {
      UserAgentInfo localUserAgentInfo = (UserAgentInfo)super.clone();
      return localUserAgentInfo;
    }
    catch (CloneNotSupportedException localCloneNotSupportedException)
    {
      LOG.logThrowable(TAG, localCloneNotSupportedException);
    }
    return null;
  }

  public boolean equals(Object paramObject)
  {
    if (this == paramObject);
    UserAgentInfo localUserAgentInfo;
    do
    {
      do
      {
        return true;
        if (paramObject == null)
          return false;
        if (getClass() != paramObject.getClass())
          return false;
        localUserAgentInfo = (UserAgentInfo)paramObject;
        if (this.Build == null)
        {
          if (localUserAgentInfo.Build != null)
            return false;
        }
        else if (!this.Build.equals(localUserAgentInfo.Build))
          return false;
        if (this.BuildID == null)
        {
          if (localUserAgentInfo.BuildID != null)
            return false;
        }
        else if (!this.BuildID.equals(localUserAgentInfo.BuildID))
          return false;
        if (this.Density == null)
        {
          if (localUserAgentInfo.Density != null)
            return false;
        }
        else if (!this.Density.equals(localUserAgentInfo.Density))
          return false;
        if (this.androidDensityID == null)
        {
          if (localUserAgentInfo.androidDensityID != null)
            return false;
        }
        else if (!this.androidDensityID.equals(localUserAgentInfo.androidDensityID))
          return false;
        if (this.Device == null)
        {
          if (localUserAgentInfo.Device != null)
            return false;
        }
        else if (!this.Device.equals(localUserAgentInfo.Device))
          return false;
        if (this.DeviceFamily == null)
        {
          if (localUserAgentInfo.DeviceFamily != null)
            return false;
        }
        else if (!this.DeviceFamily.equals(localUserAgentInfo.DeviceFamily))
          return false;
        if ("Android" == null)
        {
          localUserAgentInfo.getClass();
          if ("Android" != null)
            return false;
        }
        else
        {
          localUserAgentInfo.getClass();
          if (!"Android".equals("Android"))
            return false;
        }
        if (this.PlatformVersion == null)
        {
          if (localUserAgentInfo.PlatformVersion != null)
            return false;
        }
        else if (!this.PlatformVersion.equals(localUserAgentInfo.PlatformVersion))
          return false;
        if (this.ScreenResolution == null)
        {
          if (localUserAgentInfo.ScreenResolution != null)
            return false;
        }
        else if (!this.ScreenResolution.equals(localUserAgentInfo.ScreenResolution))
          return false;
        if (this.v == null)
        {
          if (localUserAgentInfo.v != null)
            return false;
        }
        else if (!this.v.equals(localUserAgentInfo.v))
          return false;
        if (this.webUserAgent != null)
          break;
      }
      while (localUserAgentInfo.webUserAgent == null);
      return false;
    }
    while (this.webUserAgent.equals(localUserAgentInfo.webUserAgent));
    return false;
  }

  public String getApplicationVersion()
  {
    return this.appVersion;
  }

  public int getApplicationVersionCode()
  {
    return this.appVersionInt;
  }

  public String getCarrier()
  {
    return this.Carrier;
  }

  public String getMCC()
  {
    return this.MCC;
  }

  public String getMNC()
  {
    return this.MNC;
  }

  public String getMraidVersion()
  {
    return this.apiVersions.mraid;
  }

  public String getOrmmaVersion()
  {
    return this.apiVersions.ormma;
  }

  public String getRewardsVersion()
  {
    return this.apiVersions.rewards;
  }

  public String getScreenResolution()
  {
    return this.ScreenResolution;
  }

  public String getWebUserAgent()
  {
    return this.webUserAgent;
  }

  public int hashCode()
  {
    int i;
    int k;
    label26: int n;
    label44: int i2;
    label64: int i4;
    label84: int i6;
    label104: int i8;
    label122: int i10;
    label142: int i12;
    label162: int i14;
    label182: int i15;
    int i16;
    if (this.BuildID == null)
    {
      i = 0;
      int j = 31 * (i + 31);
      if (this.androidDensityID != null)
        break label223;
      k = 0;
      int m = 31 * (j + k);
      if (this.Build != null)
        break label234;
      n = 0;
      int i1 = 31 * (m + n);
      if (this.Density != null)
        break label246;
      i2 = 0;
      int i3 = 31 * (i1 + i2);
      if (this.Device != null)
        break label258;
      i4 = 0;
      int i5 = 31 * (i3 + i4);
      if (this.DeviceFamily != null)
        break label270;
      i6 = 0;
      int i7 = 31 * (i5 + i6);
      if ("Android" != null)
        break label282;
      i8 = 0;
      int i9 = 31 * (i7 + i8);
      if (this.PlatformVersion != null)
        break label292;
      i10 = 0;
      int i11 = 31 * (i9 + i10);
      if (this.ScreenResolution != null)
        break label304;
      i12 = 0;
      int i13 = 31 * (i11 + i12);
      if (this.v != null)
        break label316;
      i14 = 0;
      i15 = 31 * (i13 + i14);
      String str = this.webUserAgent;
      i16 = 0;
      if (str != null)
        break label328;
    }
    while (true)
    {
      return i15 + i16;
      i = this.BuildID.hashCode();
      break;
      label223: k = this.androidDensityID.hashCode();
      break label26;
      label234: n = this.Build.hashCode();
      break label44;
      label246: i2 = this.Density.hashCode();
      break label64;
      label258: i4 = this.Device.hashCode();
      break label84;
      label270: i6 = this.DeviceFamily.hashCode();
      break label104;
      label282: i8 = "Android".hashCode();
      break label122;
      label292: i10 = this.PlatformVersion.hashCode();
      break label142;
      label304: i12 = this.ScreenResolution.hashCode();
      break label162;
      label316: i14 = this.v.hashCode();
      break label182;
      label328: i16 = this.webUserAgent.hashCode();
    }
  }

  public void setAndroidDensityId(int paramInt)
  {
    this.androidDensityID = Integer.toString(paramInt);
  }

  public void setApplicationVersion(String paramString)
  {
    this.appVersion = paramString;
  }

  public void setApplicationVersionCode(int paramInt)
  {
    this.appVersionInt = paramInt;
  }

  public void setBuild(String paramString)
  {
    this.Build = paramString;
  }

  public void setCarrier(String paramString)
  {
    this.Carrier = paramString;
  }

  public void setDensity(String paramString)
  {
    this.Density = paramString;
  }

  public void setDevice(String paramString)
  {
    this.Device = paramString;
  }

  public void setDeviceFamily(String paramString)
  {
    this.DeviceFamily = paramString;
  }

  public void setMCC(String paramString)
  {
    this.MCC = paramString;
  }

  public void setMNC(String paramString)
  {
    this.MNC = paramString;
  }

  public void setMraidVersion(String paramString)
  {
    this.apiVersions.mraid = paramString;
  }

  public void setOrmmaVersion(String paramString)
  {
    this.apiVersions.ormma = paramString;
  }

  public void setPlatformVersion(String paramString)
  {
    this.PlatformVersion = paramString;
  }

  public void setRewardsVersion(String paramString)
  {
    this.apiVersions.rewards = paramString;
  }

  public void setScreenResolution(String paramString)
  {
    this.ScreenResolution = paramString;
  }

  public void setWebUserAgent(String paramString)
  {
    this.webUserAgent = paramString;
  }

  public String toString()
  {
    Object[] arrayOfObject = new Object[11];
    arrayOfObject[0] = this.v;
    arrayOfObject[1] = "Android";
    arrayOfObject[2] = this.PlatformVersion;
    arrayOfObject[3] = this.Device;
    arrayOfObject[4] = this.DeviceFamily;
    arrayOfObject[5] = this.Build;
    arrayOfObject[6] = this.BuildID;
    arrayOfObject[7] = this.Density;
    arrayOfObject[8] = this.androidDensityID;
    arrayOfObject[9] = this.ScreenResolution;
    arrayOfObject[10] = this.webUserAgent;
    return MessageFormat.format("[v={0}, Platform={1}, PlatformVersion={2}, Device={3}, DeviceFamily={4}, Build={5}, BuildID={6}, Density={7}, androidDensityID={8}, ScreenResolution={9}, webUserAgent={10}]", arrayOfObject);
  }

  private static class ApiVersions
  {
    String mraid;
    String ormma;
    String rewards;
  }
}

/* Location:           E:\android\Toy Defense 2_dex2jar.jar
 * Qualified Name:     com.burstly.lib.network.beans.UserAgentInfo
 * JD-Core Version:    0.6.2
 */